package com.swak.reactivex.threads;

import java.util.concurrent.ThreadFactory;

import com.swak.exception.NoSupportException;

/**
 * 不支持创建线程
 * 
 * @author lifeng
 */
public class DeniedThreadFactory implements ThreadFactory {

	@Override
	public Thread newThread(Runnable r) {
		throw new NoSupportException("不支持创建线程");
	}
}